package com.tensquare.search.dao;

import com.tensquare.search.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface ArticleDao extends ElasticsearchRepository<Article, String> {

    /**
     * 文章搜索
     */
    public Page<Article> findByTitleOrContentLike(String Title, String Content, Pageable pageable);
}
